package com.mune.gulimall.authserver.feign;

import com.mune.common.utils.R;
import com.mune.gulimall.authserver.vo.UserLoginVo;
import com.mune.gulimall.authserver.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {

  @PostMapping("/member/member/register")
  public R register(@RequestBody UserRegisterVo userRegisterVo);

  @PostMapping("/member/member/login")
  public R login(@RequestBody UserLoginVo vo);
}
